<?php
namespace Tbf\Component\Crypto\Password;
/**
* 在验证时,如果原有加密方案强度不够,则重新生成强度更高的方案
*/
class PassowrdEnsureStrength implements PasswordInterface
{
    protected $hash_plan = null;
    protected $verify_plan = null;
    public function __construct(PasswordInterface $hash_plan,PasswordInterface $verify_plan)
    {
        $this->hash_plan = $hash_plan;
        $this->verify_plan = $verify_plan;
    }
    public function hash($plain)
    {
        return $this->hash_plan->hash($plain);
    }
}
